package com.wu.cloud.custom.controller.admin;

import bean.PeskResponseEntity;
import com.wu.cloud.custom.service.UserFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author xwu36
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    UserFeignService userService;

    @GetMapping("/list")
    public PeskResponseEntity userList(@RequestParam Map<String,Object> params){
        return userService.getUserList(params);
    }
}
